package com.banmao.mall.mapper;

import com.banmao.mall.model.bo.admin.goods.SpecificationBO;
import com.banmao.mall.model.pojo.goodsSpecification;
import com.banmao.mall.model.vo.client.goods.SpecificationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsSpecificationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(goodsSpecification record);

    int insertSelective(goodsSpecification record);

    goodsSpecification selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(goodsSpecification record);

    int updateByPrimaryKey(goodsSpecification record);

    List<SpecificationVO> selectByGoodsID(Integer goodsId);

    int insertSpec(@Param("goodsId") Integer goodsId, @Param("spec") SpecificationBO specification);

    List<com.banmao.mall.model.vo.admin.goods.SpecificationVO> selectSpecByGoodsID(Integer goodsId);

    int insertSpecWithUpdate(SpecificationBO specification);

    int deleteAllByGoodsID(Integer goodsId);
}